JavaScript
buttonList.setDisabled Method
Syntax
buttonListObj.setDisabled(value, disable);
Arguments
- valuestring
The 'value' of the button to enable or disable.
- disableboolean
A true/false value. If true, the button will be disabled. If false, the button will be enabled.
Description
Enables or disables a button in a Button List Control.
Example
var buttonListObj = {dialog.object}.getControl('BUTTONLIST_1'); if (buttonListObj) { //disable the button that has a value of 'b3' buttonListObj.setDisabled('b3',true); //enable the button that has a value of 'b3' buttonListObj.setDisabled('b3',false); }